package cn.hp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hp.domain.User;
import cn.hp.mapper.UserMapper;
import cn.hp.service.UserService;
@Service
@Transactional
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User findUserByUsername(String username) {
		User user=userMapper.findUserByUsername(username);
		return user;
	}

}
